{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
<!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="">	
                <div class="box-header with-border">
                    <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">成绩表</p>
                    <a href="index.php?a=score.scoreadd" class="btn btn-primary btn-sm" style="float:right; margin-left:8px;">新增</a>
                    <a href="" class="btn btn-success btn-sm" style="float:right">批量导入</a>
                    <a href="" target="_blank" class="btn btn-warning btn-sm" style="float:right; margin-right:8px;">导出</a>
                </div>
                    <div class="box-body">
                        <table class="table table-bordered table-striped" id="mytable">
                           <thead>   
                             <tr style="background-color:#5fb2dc;">
							    <td>姓名</td>
								<td>全国学籍号</td>
								<td>总分</td>
								{%foreach from=$subject_date key=key item=value%}
								<td>{%$value.subject_name%}</td>
								 {%/foreach%} 
								<td width="100">操作</td>
							 </tr>
                          </thead>
							 {%foreach from=$student_date key=key item=value%}
                             <tr>
							    <td>{%$value.student_name%}</td>
								<td>{%$value.student_school%}</td>
								<td>未实现功能</td>
								{%foreach from=$value.score key=key item=v%}
								<td>{%$v%}</td>
								{%/foreach%}
                                <td>
                                     <a href="index.php?a=score.scoreupdate&student_id={%$value.student_id%}" class="btn btn-warning btn-sm"  title="修改"><i class="fa fa-edit (alias)"></i></a>
								     <a href="" class="btn btn-danger btn-sm" onclick="if(confirm('警告！确认删除信息?')==false)return false;" title="删除"><i class="fa fa-trash"></i></a>
                                </td>
							 </tr>
                            {%/foreach%}  
						 </table>
				    </div><!--box-body -->
               </form>
			   {%$page%}
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
